<template>
  <div class="chao">
    <span>
      <slot name="txt1"></slot>
    </span>
    <ul>
      <slot name="txt2"></slot>
    </ul>
  </div>
</template>
<script>
export default {
  props: [],
  data() {
    return {};
  },
  methods: {},
};
</script>
<style lang="less" scoped>
.chao {
  border: 1px solid #000;
  display: inline-block;
  width: 400px;
  line-height: 40px;
  border-radius: 5px;
  margin: 5px 0;
  padding: 0 5px;
  span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    height: 40px;
    background: linear-gradient(
      120deg,
      rgba(11, 56, 219, 0.988),
      hsl(193, 87%, 49%)
    );
    width: 100%;
    text-align: right;
    border-radius: 5px;
  }
  ul {
    list-style: none;
  }
}
</style>
